package com.suixun.dao.credits;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.suixun.entity.credits.CreditTask;
import com.suixun.entity.credits.CreditTaskExample;

/**
 * 可以获取积分的任务列表
 * 
 * @author yh
 * @date 2017年11月15日
 */
public interface CreditTaskMapper {

    int countByExample(CreditTaskExample example);

    int deleteByExample(CreditTaskExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(CreditTask record);

    int insertSelective(CreditTask record);

    List<CreditTask> selectByExample(CreditTaskExample example);

    CreditTask selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CreditTask record, @Param("example") CreditTaskExample example);

    int updateByExample(@Param("record") CreditTask record, @Param("example") CreditTaskExample example);

    int updateByPrimaryKeySelective(CreditTask record);

    int updateByPrimaryKey(CreditTask record);

    /**
     * 查询所有任务id和name
     * 
     * @return
     */
    List<CreditTask> findAllName();
}